
import com.sun.org.apache.xerces.internal.impl.xpath.regex.Match;

import java.util.Scanner;


class Number {
    public static void main(String[] args) {
        double sum = 0;//和
        double num = 0;
        for (int i = 0; i < 10; i++) {
           num = 9 * Math.pow(10, i);
           sum += num;
        }

    }
    
    public static void main7(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        String emailMatcher="[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+";
        if(str.matches(emailMatcher)) {
            System.out.println("邮箱格式合法");
        }else{
            System.out.println("邮箱格式不合法");
        }
    }
    
    public static void main6(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String grade = scanner.next();
        if (grade.equals('A') ) {
            System.out.println("优秀");
        }else if (grade.equals('B') ){
            System.out.println("良好");
        }else if (grade.equals('C')) {
            System.out.println("及格");
        }else if (grade.equals('D')){
            System.out.println("不及格");
        }else {
            System.out.println("未知等级");
        }
    }

    public static void main5(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double height = scanner.nextDouble();
        double weight = scanner.nextDouble();

        //write your code here......
        double bmi = height / (weight * weight);
        if (bmi < 18.5) {
            System.out.println("偏瘦");
        }else if (bmi >= 18.5 && bmi <= 20.9) {
            System.out.println("苗条");
        }else if (bmi >= 20.9 && bmi <= 24.9) {
            System.out.println("适中");
        }else{
            System.out.println("偏胖");
        }
    }

    public static void main4(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        //write your code here.......
        a = a^b;
        b = a^b;
        a = a^b;

        System.out.println(a+" "+b);
    }

    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d = scanner.nextDouble();
        int i = (int)d;
        if ((d - i) > 0.5) {
            i += 1;//四合五入
        }
        System.out.println(i);
    }

    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        scanner.close();
        //和，差，积，商，模
        int sum = a + b;
        int sub = 0;
        int div = 0;
        int mod = 0;
        if (a > b) {
            sub = a - b;
            div = a / b;
            mod = a % b;
        } else {
            sub = b - a;
            div = b / a;
            mod = b % a;
        }
        int mul = a * b;
        System.out.println(sum);
        System.out.println(sub);
        System.out.println(mul);
        System.out.println(div);
        System.out.println(mod);
    }
}

public class Main {
    public static double typeConversion(double d) {
        return (int)d;
    }

    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d = scanner.nextDouble();
        System.out.println(Main.typeConversion(d));
    }
}